﻿using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MPic.Business.Entity
{
    [Table("Files")]
    public class FilesEntity
    {
        /// <summary>
        /// 文件Id
        /// </summary>
        [Key]
        public int FileId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 文件Url
        /// </summary>
        public string FileUrl { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public string FileSize { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadDate { get; set; }
        /// <summary>
        /// 上传IP
        /// </summary>
        public string UploadIp { get; set; }
        /// <summary>
        /// 客户端版本
        /// </summary>
        public string ClientVersion { get; set; }
        /// <summary>
        /// 上传方式（1：截图上传，2：复制上传，3：点击上传，4：拖曳上传，5：网页上传）
        /// </summary>
        public int UploadWay { get; set; }
        /// <summary>
        /// 上传渠道（1：七牛，2：阿里云OSS，3：腾讯云）
        /// </summary>
        public int UploadType { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }
        /// <summary>
        /// 文件Key
        /// </summary>
        public string FileKey { get; set; }
        /// <summary>
        /// 相册Id
        /// </summary>
        public int AlbumId { get; set; }
    }
}
